package com.unit_12;
import java.util.*;
public class Cage<E extends Animal> extends HashSet<E> {
    public static void main(String[] args) {
        Lion king = new Lion("King");
        Bird sparrow = new Bird("Sparrow");

        Cage<Lion> lionCage = new Cage<>();
        Cage<Bird> birdCage = new Cage<>();
        Cage<Animal> mixedCage = new Cage<>();

        lionCage.add(king);
        birdCage.add(sparrow);
        mixedCage.add(king);
        mixedCage.add(sparrow);

        System.out.println("Lion Cage: " + lionCage);
        System.out.println("Bird Cage: " + birdCage);
        System.out.println("Mixed Cage: " + mixedCage);
    }
}